package com.nineclock.system.mapper;

import com.nineclock.system.pojo.SysFunction;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface Sysfunctionmapper {

    @Select("select b.* from `sys_role_function` a inner join `sys_function` b on a.function_id = b.id where a.role_id=#{id}")
    public List<SysFunction> queryFunctionByRoleId(@Param("id") Long id);
}
